#include "proxy.h"

void RealSubject::buy()
{
    std::cout << "payment!" << std::endl;
}

void Proxy::buy()
{
    std::cout<<"show passport!" << std::endl;
    m_realSubject->buy();
    std::cout << "package goods,and deliver goods." << std::endl;
}
